package com.system.run.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.system.run.entity.Patient;
import com.system.run.mapper.PatientMapper;
import com.system.run.service.PatientService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-01-08
 */
@Service
public class PatientServiceImpl extends ServiceImpl<PatientMapper, Patient> implements PatientService {

    @Override
    public Patient getPatientById(String uuid) {
        QueryWrapper<Patient> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id",uuid);
        Patient patient = baseMapper.selectOne(queryWrapper);
        return patient;
    }
}
